public class Client {
    public static void main(String[] args) {
        // 创建代理搜索器实例
        ProxySearcher proxySearcher = new ProxySearcher();

        // 测试用户ID和关键词
        String userID1 = "张无忌";
        String keyword1 = "Java设计模式";

        // 执行搜索操作并输出结果
        System.out.println("测试用户: " + userID1 + ", 搜索关键词: " + keyword1);
        String result1 = proxySearcher.doSearch(userID1, keyword1);
        System.out.println("搜索结果: " + result1);

        // 测试另一个用户ID
        String userID2 = "未知用户";
        String keyword2 = "Spring框架";

        System.out.println("\n测试用户: " + userID2 + ", 搜索关键词: " + keyword2);
        String result2 = proxySearcher.doSearch(userID2, keyword2);
        System.out.println("搜索结果: " + result2);
    }
}
